﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200034D RID: 845
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ContentPackageData : IMessage<ContentPackageData>, IMessage, IEquatable<ContentPackageData>, IDeepCloneable<ContentPackageData>, IBufferMessage
	{
		// Token: 0x17000AFE RID: 2814
		// (get) Token: 0x06002604 RID: 9732 RVA: 0x0006B017 File Offset: 0x00069217
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ContentPackageData> Parser
		{
			get
			{
				return ContentPackageData._parser;
			}
		}

		// Token: 0x17000AFF RID: 2815
		// (get) Token: 0x06002605 RID: 9733 RVA: 0x0006B01E File Offset: 0x0006921E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ContentPackageDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B00 RID: 2816
		// (get) Token: 0x06002606 RID: 9734 RVA: 0x0006B030 File Offset: 0x00069230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ContentPackageData.Descriptor;
			}
		}

		// Token: 0x06002607 RID: 9735 RVA: 0x0006B037 File Offset: 0x00069237
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageData()
		{
		}

		// Token: 0x06002608 RID: 9736 RVA: 0x0006B04A File Offset: 0x0006924A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageData(ContentPackageData other) : this()
		{
			this.curContentId_ = other.curContentId_;
			this.contentPackageList_ = other.contentPackageList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002609 RID: 9737 RVA: 0x0006B080 File Offset: 0x00069280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageData Clone()
		{
			return new ContentPackageData(this);
		}

		// Token: 0x17000B01 RID: 2817
		// (get) Token: 0x0600260A RID: 9738 RVA: 0x0006B088 File Offset: 0x00069288
		// (set) Token: 0x0600260B RID: 9739 RVA: 0x0006B090 File Offset: 0x00069290
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurContentId
		{
			get
			{
				return this.curContentId_;
			}
			set
			{
				this.curContentId_ = value;
			}
		}

		// Token: 0x17000B02 RID: 2818
		// (get) Token: 0x0600260C RID: 9740 RVA: 0x0006B099 File Offset: 0x00069299
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ContentPackageInfo> ContentPackageList
		{
			get
			{
				return this.contentPackageList_;
			}
		}

		// Token: 0x0600260D RID: 9741 RVA: 0x0006B0A1 File Offset: 0x000692A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ContentPackageData);
		}

		// Token: 0x0600260E RID: 9742 RVA: 0x0006B0B0 File Offset: 0x000692B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ContentPackageData other)
		{
			return other != null && (other == this || (this.CurContentId == other.CurContentId && this.contentPackageList_.Equals(other.contentPackageList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600260F RID: 9743 RVA: 0x0006B100 File Offset: 0x00069300
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurContentId != 0U)
			{
				num ^= this.CurContentId.GetHashCode();
			}
			num ^= this.contentPackageList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002610 RID: 9744 RVA: 0x0006B14D File Offset: 0x0006934D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002611 RID: 9745 RVA: 0x0006B155 File Offset: 0x00069355
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002612 RID: 9746 RVA: 0x0006B160 File Offset: 0x00069360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.contentPackageList_.WriteTo(ref output, ContentPackageData._repeated_contentPackageList_codec);
			if (this.CurContentId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.CurContentId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002613 RID: 9747 RVA: 0x0006B1B0 File Offset: 0x000693B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurContentId);
			}
			num += this.contentPackageList_.CalculateSize(ContentPackageData._repeated_contentPackageList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002614 RID: 9748 RVA: 0x0006B204 File Offset: 0x00069404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ContentPackageData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurContentId != 0U)
			{
				this.CurContentId = other.CurContentId;
			}
			this.contentPackageList_.Add(other.contentPackageList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002615 RID: 9749 RVA: 0x0006B251 File Offset: 0x00069451
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002616 RID: 9750 RVA: 0x0006B25C File Offset: 0x0006945C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.CurContentId = input.ReadUInt32();
					}
				}
				else
				{
					this.contentPackageList_.AddEntriesFrom(ref input, ContentPackageData._repeated_contentPackageList_codec);
				}
			}
		}

		// Token: 0x04000F4E RID: 3918
		private static readonly MessageParser<ContentPackageData> _parser = new MessageParser<ContentPackageData>(() => new ContentPackageData());

		// Token: 0x04000F4F RID: 3919
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F50 RID: 3920
		public const int CurContentIdFieldNumber = 6;

		// Token: 0x04000F51 RID: 3921
		private uint curContentId_;

		// Token: 0x04000F52 RID: 3922
		public const int ContentPackageListFieldNumber = 4;

		// Token: 0x04000F53 RID: 3923
		private static readonly FieldCodec<ContentPackageInfo> _repeated_contentPackageList_codec = FieldCodec.ForMessage<ContentPackageInfo>(34U, ContentPackageInfo.Parser);

		// Token: 0x04000F54 RID: 3924
		private readonly RepeatedField<ContentPackageInfo> contentPackageList_ = new RepeatedField<ContentPackageInfo>();
	}
}
